package com.cunjin.student.entity;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.context.annotation.Scope;

@Scope("prototype")
@Table(name="cunjin_student_t")
public class StudentEntity {
	

	@Id
    private Integer id;

    private String name;
    
    private String loginNo;

    private String sex;

    private Integer grateId;

    private Integer dormitoryId;

    private String password;
    
    private String beginTime;

    private Integer isDel;
    
    
    //非数据库字段
    @Transient
    private String dormitoryName;
    @Transient
    private String grateName;
    
    

    
    
    public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getGrateName() {
		return grateName;
	}

	public void setGrateName(String grateName) {
		this.grateName = grateName;
	}
    public Integer getDormitoryId() {
		return dormitoryId;
	}

	public void setDormitoryId(Integer dormitoryId) {
		this.dormitoryId = dormitoryId;
	}

	public String getDormitoryName() {
		return dormitoryName;
	}

	public void setDormitoryName(String dormitoryName) {
		this.dormitoryName = dormitoryName;
	}

	public String getLoginNo() {
		return loginNo;
	}

	public void setLoginNo(String loginNo) {
		this.loginNo = loginNo;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }


    public Integer getGrateId() {
		return grateId;
	}

	public void setGrateId(Integer grateId) {
		this.grateId = grateId;
	}

	public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }
}